package com.boot.entity;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanTest {
    @Bean(name="bean1")
    public Employ employ() {
    	Employ em = new Employ();
    	em.setAge("11");
    	em.setEmployId(1);
    	return em;
    }
}
